//
//  ChuanDishTableViewCell.m
//  Delicious
//
//  Created by lanou on 16/5/7.
//  Copyright © 2016年 gy. All rights reserved.
//

#import "ChuanDishTableViewCell.h"

@implementation ChuanDishTableViewCell

- (void)setModel:(ChuanDishModel *)model
{
    self.name.text = model.name;
    self.nickname.text = model.referrer[@"nickname"];
    self.ingredients.text = model.ingredients;
    
    NSString *a = model.hitscount;
    NSString *hitscount = [a stringByAppendingString:@"次点击  "];
    
    NSString *b = model.collectCount;
    NSString *collectCount = [b stringByAppendingString:@"个收藏  "];
    
//    NSString *c = model.commentCount;
//    NSString *commentCount = [c stringByAppendingString:@"条评论"];
    NSString *total = [NSString stringWithFormat:@"%@%@",hitscount,collectCount];

    self.total.text = total;
    
    
}



- (void)awakeFromNib {
    
    self.ImageView.layer.cornerRadius = 10;
    self.ImageView.layer.masksToBounds = YES;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
